<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>商户支付宝主扫</title>
	<script type="text/javascript" src="jquery.min.js"></script>
	<script type="text/javascript" src="encrypt.js"></script>
</head>
<body>
	<center>
		<form>
			<input type="hidden" name="bizcode" value="2001">
			<table cellpadding="10">
				<tr>
					<td>业务编码</td>
					<td><input type="text" name="bizcode" value="2002"></td>
				</tr>
				<tr>
					<td>交易标题</td>
					<td><input type="text" name="subject" autofocus="autofocus"></td>
				</tr>
				<tr>
					<td>会员号</td>
					<td><input type="text" name="memberNo" value="G100117097221966"></td>
				</tr>
				<tr>
					<td>业务数据</td>
					<td><input type="text" name="bizData" value="{authCode:}"></td>
				</tr>
				<tr>
					<td>交易金额</td>
					<td><input type="text" name="transAmt" value="1"></td>
				</tr>
			</table>
		</form>
			<button onclick="transaction()">交易</button>
			<br/>
			<span id="qrcode"></span>
	</center>
</body>
	<script type="text/javascript">
	var span = '{"subject":"智能菜场","bizcode":"1001","memberNo":"G100117097221966","bizData":"1001","transAmt":"55","notifyUrl":"http:\/\/ymf.0205v.com\/weixin\/public\/succeedafter"}';
		function transaction(){
			$.ajax({
		        type: "POST",
		        url: "MemberTransaction",
		        data: encrypt('G1001','c6fefb5abf8a2addd6185bafb8cba20e',span),
		        success: function(data) {
		        	$("span").html(data);
		        }
		    });
		}
	</script>
</html>